﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyAccount.aspx.cs" Inherits="SAD_Assignment1.Member.MyAccount" MasterPageFile="~/Shared/Site1.Master"%>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <title>Personal Infomation</title>
</asp:Content>
<asp:Content runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="container-title">Tài khoản của tôi</div>
    <asp:Table ID="Table1" runat="server" CssClass="register-table" CellPadding="5">
        <asp:TableRow>
            <asp:TableCell CssClass="first"><span class="required">*</span>Email:</asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtEmail" runat="server" Text="email@example.com" CssClass="form-control"
                    Width="300" ReadOnly="true"/>                                
            </asp:TableCell>
        </asp:TableRow>       
        <asp:TableRow>
            <asp:TableCell CssClass="first"><span class="required">*</span>Tên hiển thị:</asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtName" runat="server" Text="" CssClass="form-control"
                    placeholder="Nguyen Van A" Width="300" required="required" />
            </asp:TableCell>
        </asp:TableRow> 
        <asp:TableRow>
            <asp:TableCell CssClass="first"><span class="required">*</span>Mật khẩu:</asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" 
                    CssClass="form-control" required="required" />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow>
            <asp:TableCell CssClass="first"><span class="required">*</span>Xác nhận mật khẩu:</asp:TableCell>
            <asp:TableCell>
                <asp:TextBox ID="txtConfirm" TextMode="Password" runat="server"
                    CssClass="form-control" required="required" />                
                <asp:CompareValidator ID="comparePasswords" runat="server" ControlToCompare="txtPassword"
                    ControlToValidate="txtConfirm" ErrorMessage="Mật khẩu không chính xác" Font-Size="Small"
                    Display="Dynamic" style="color:red;"/>
            </asp:TableCell>
        </asp:TableRow>        
        
        <asp:TableRow>
            <asp:TableCell></asp:TableCell>
            <asp:TableCell>
                <asp:Button ID="UpdateBtn" Text="Cập nhật tài khoản" CssClass="btn btn-info" 
                    runat="server" OnCommand="UpdateBtn_Command"/>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>